package com.yishun.springboot.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface GwsLongGangQuCrane {

	Map<String, Object> getProject(String projectName);

	/**
	 * 新增工务署项目信息
	 * 
	 * @param api_key
	 *            秘钥
	 * @param engCode
	 *            工程编号
	 * @param projectCode
	 *            项目编号
	 * @param project_name
	 * @return
	 */
	Integer addGwsLongGangQuCrane(@Param("projectId") Long projectId, @Param("api_key") String api_key,
			@Param("engCode") String engCode, @Param("projectCode") String projectCode,
			@Param("project_name") String project_name);

	Map<String, Object> getCraneParam(String deviceCode);

	List<Map<String, Object>> getProjectAll(@Param("project_name") String project_name);

	List<Map<String, Object>> getProjectDeviceId(Long id);

	Integer addCraneInfo(@Param("projectId") Long projectId, @Param("deviceName") String deviceName,
			@Param("deviceCode") String deviceCode, @Param("deviceNo") String deviceNo,
			@Param("guangdong_install_num") String guangdong_install_num);

	Map<String, Object> findCraneDeta(@Param("deviceCode") String deviceCode);

	Map<String, Object> getDeviceVal(@Param("DeviceCode") String DeviceCode);

	Integer upOnlineOrOffline(@Param("map") Map<String, Object> map);

	String getMomentMax(@Param("deviceCode") String deviceCode, @Param("startTime") String startTime,
			@Param("endTime") String endTime);

	List<Map<String, Object>> getProjectDeviceAll(Integer projectId);

	String getCraneUser(String DeviceCode);
}
